Boolean logic deals with two values: true and false. It's the basis for all digital electronics and computer decisions.
A truth table shows all possible input combinations and the resulting output for a gate or circuit.
Input A | Input B | Output |
---|---|---|
FALSE | FALSE | FALSE |
FALSE | TRUE | FALSE |
TRUE | FALSE | FALSE |
TRUE | TRUE | TRUE |
You can combine gates to create more complex circuits. Example: a security system might trigger an alarm only if both a motion sensor (Input A) AND a door sensor (Input B) are active.